|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||
See:
Description
| Class Summary | |
| DocumentBuilder | Parser to create a DOM Document from an input source
|
| DocumentBuilderFactory | Responsible for creating new DOM parsers |
| SAXParser | Builder for SAX parsers |
| SAXParserFactory | Responsible for creating new SAXParsers. |
| Exception Summary | |
| ParserConfigurationException | |
| Error Summary | |
| FactoryConfigurationError | |
Java XML Parsing API (supports SAX 1.0 and DOM 2.0). JAXP is a standard API to parse XML using either the SAX callback API or directly into the DOM (Document Object Model.) Using JAXP, application code can remain XML-parser independent.
A typical use to create a DOM Document is:
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder parser = factory.newDocumentBuilder();
Document doc = parser.parse(myInputSource);
A typical use to create a SAX parser is:
SAXParserFactory factory = SAXParserFactory.newInstance();
Parser parser = factory.newSAXParser();
parser.setDocumentHandler(myDocumentHandler);
parser.parse(myInputSource);
|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||